<?php
namespace app\common\logic;
use think\Db;
use think\Exception;

class LhcPayment
{
    private static $_instance;
    
    private function __construct() {}
    
    public static function getInstance()
    {
        if(!(self::$_instance instanceof self)) {
            self::$_instance = new self;
        }
        return self::$_instance;
    }

    public function dealInfo($data) {
    	
		$tem_zf = 0;
        $kjjg_arr = str_split(trim($data['kjjg']),2);
        $code_arr = explode(',',$data['tzhm']);
        $kjjg_1 = $kjjg_arr[0];
        $kjjg_2 = $kjjg_arr[1];
        $kjjg_3 = $kjjg_arr[2];
        $kjjg_4 = $kjjg_arr[3];
        $kjjg_5 = $kjjg_arr[4];
        $kjjg_6 = $kjjg_arr[5];
        $kjjg_7 = $kjjg_arr[6];
        $kjjg_8 = array($kjjg_1,$kjjg_2,$kjjg_3,$kjjg_4,$kjjg_5,$kjjg_6);
        $kjjg_tx = array(
        		'牛'=>array('10','22','34','46'),
        		'兔'=>array('08','20','32','44'),
        		'龙'=>array('07','19','31','43'),
        		'马'=>array('05','17','29','41'),
        		'猴'=>array('03','15','27','39'),
        		'猪'=>array('12','24','36','48')
        );
        $kjjg_dx = array(
        		'鼠'=>array('11','23','35','47'),
        		'虎'=>array('09','21','33','45'),
        		'蛇'=>array('06','18','30','42'),
        		'羊'=>array('04','16','28','40'),
        		'鸡'=>array('02','14','26','38'),
        		'狗'=>array('01','13','25','37','48')
        );
        $kjjg_jq = array(
        		'牛'=>array('10','22','34','46'),
        		'马'=>array('05','17','29','41'),
        		'蛇'=>array('06','18','30','42'),
        		'鸡'=>array('02','14','26','38'),
        		'狗'=>array('01','13','25','37','48'),
        		'猪'=>array('12','24','36','48')
        );
        $kjjg_ys = array(
        		'鼠'=>array('11','23','35','47'),
        		'虎'=>array('09','21','33','45'),
        		'兔'=>array('08','20','32','44'),
        		'龙'=>array('07','19','31','43'),
        		'蛇'=>array('06','18','30','42'),
        		'猴'=>array('03','15','27','39')
        );
        $kjjg_qx = array(
        		'鼠'=>array('11','23','35','47'),
        		'牛'=>array('10','22','34','46'),
        		'虎'=>array('09','21','33','45'),
        		'兔'=>array('08','20','32','44'),
        		'龙'=>array('07','19','31','43'),
        		'蛇'=>array('06','18','30','42')
        );
        $kjjg_hx = array(
        		'马'=>array('05','17','29','41'),
        		'羊'=>array('04','16','28','40'),
        		'猴'=>array('03','15','27','39'),
        		'鸡'=>array('02','14','26','38'),
        		'狗'=>array('01','13','25','37','48'),
        		'猪'=>array('12','24','36','48')
        );
        $kjjg_zh = $kjjg_1+$kjjg_2+$kjjg_3+$kjjg_4+$kjjg_5+$kjjg_6+$kjjg_7;
        $zjzs = 0;
        $zjje = 0;
        $zhongqiuhm = 0;
        $tem_zf=0;
        $qisebo_hongbo = $qisebo_lanbo = $qisebo_lvbo = 0;
        $zongxiao_1 = $zongxiao_2 = $zongxiao_3 = $zongxiao_4 = $zongxiao_5 = $zongxiao_6 = $zongxiao_7 = $zongxiao_8 = $zongxiao_9 = $zongxiao_10 = $zongxiao_11 = $zongxiao_12 = 0;
        $is_new = 0;
	try{

        switch($data['wfid']) {
        	case '163':
				$tzhm = explode(' ',trim($data['tzhm']));
				if( 1==count($tzhm) ){
					if($data['tzhm'] == "特单" && $kjjg_7%2==1){
						$zjzs=$zjzs+1;
					}
					if($data['tzhm'] == "特双" && $kjjg_7%2==0){
						$zjzs=$zjzs+1;
					}
					if($data['tzhm'] == "特大" && $kjjg_7>=25 && $kjjg_7<49){
						$zjzs=$zjzs+1;
					}
					if($data['tzhm'] == "特小" && $kjjg_7>=1 && $kjjg_7<25){
						$zjzs=$zjzs+1;
					}
					if($data['tzhm'] == "特合大" && substr($kjjg_7,0,1)+substr($kjjg_7,1,1)>=7){
						$zjzs=$zjzs+1;
					}
					if($data['tzhm'] == "特合小" && substr($kjjg_7,0,1)+substr($kjjg_7,1,1)<=6){
						$zjzs=$zjzs+1;
					}
					if($data['tzhm'] == "特合单" && (substr($kjjg_7,0,1)+substr($kjjg_7,1,1))%2==1){
						$zjzs=$zjzs+1;
					}
					if($data['tzhm'] == "特合双" && (substr($kjjg_7,0,1)+substr($kjjg_7,1,1))%2==0){
						$zjzs=$zjzs+1;
					}
					if($data['tzhm'] == "特尾大" && substr($kjjg_7,1,1)>=5){
						$zjzs=$zjzs+1;
					}
					if($data['tzhm'] == "特尾小" && substr($kjjg_7,1,1)<=4){
						$zjzs=$zjzs+1;
					}
					if ($data['tzhm'] == "特天肖") {
						foreach ($kjjg_tx as $v){
							if(in_array($kjjg_7,$v)){
								$zjzs=$zjzs+1;
							}
						}
					}
					if ($data['tzhm'] == "特地肖") {
						foreach ($kjjg_dx as $v){
							if(in_array($kjjg_7,$v)){
								$zjzs=$zjzs+1;
							}
						}
					}
					if ($data['tzhm'] == "特前肖") {
						foreach ($kjjg_qx as $v){
							if(in_array($kjjg_7,$v)){
								$zjzs=$zjzs+1;
							}
						}
					}
					if ($data['tzhm'] == "特后肖") {
						foreach ($kjjg_hx as $v){
							if(in_array($kjjg_7,$v)){
								$zjzs=$zjzs+1;
							}
						}
					}
					if ($data['tzhm'] == "特家肖") {
						foreach ($kjjg_jq as $v){
							if(in_array($kjjg_7,$v)){
								$zjzs=$zjzs+1;
							}
						}
					}
					if ($data['tzhm'] == "特野肖") {
						foreach ($kjjg_ys as $v){
							if(in_array($kjjg_7,$v)){
								$zjzs=$zjzs+1;
							}
						}
					}
					if (($data['tzhm'] == "总单"||$data['tzhm'] == "总和单") && $kjjg_zh%2==1) {
						$zjzs=$zjzs+1;
					}
					if (($data['tzhm'] == "总双"||$data['tzhm'] == "总和双") && $kjjg_zh%2==0) {
						$zjzs=$zjzs+1;
					}
					if (($data['tzhm'] == "总大"||$data['tzhm'] == "总和大") && $kjjg_zh>=175) {
						$zjzs=$zjzs+1;
					}
					if (($data['tzhm'] == "总小"||$data['tzhm'] == "总和小") && $kjjg_zh<=174) {
						$zjzs=$zjzs+1;
					}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					$sum = array_sum($kjjg_arr);
					foreach( $tzhm as $k=>$v ){
						$v = trim($v);
						if( ('总和单'==$v && 1==$sum%2) || ('总和双'==$v && 0==$sum%2) || ('总和大'==$v && $sum>=175) || ('总和小'==$v && $sum<=174) ){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        	    break;
        	case '164':
				$tzhm = explode(' ',trim($data['tzhm']));
				if( 1==count($tzhm) ){
					floor($data['tzhm'])==floor($kjjg_7) && $zjzs+=1;
					in_array($data['tzhm'],['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双','红波','蓝波','绿波']) && in_array($data['tzhm'],self::zmgg_calculate($kjjg_7)) && $zjzs+=1;
					in_array($data['tzhm'],['红波','蓝波','绿波']) && in_array($data['tzhm'],self::select_color($kjjg_7)) && $zjzs+=1;
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach( $tzhm as $k=>$v ){
						if( floor($v)==floor($kjjg_7) ){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}elseif( in_array($v,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双'])  && in_array($v,self::zmgg_calculate($kjjg_7)) ){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}elseif( in_array($v,['红波','蓝波','绿波']) && in_array($v,self::select_color($kjjg_7)) ){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '289':
				$tzhm = explode(' ',trim($data['tzhm']));
				if( 1==count($tzhm) ){
					floor($data['tzhm'])==floor($kjjg_7) && $zjzs+=1;
					in_array($data['tzhm'],['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($data['tzhm'],self::zmgg_calculate($kjjg_7)) && $zjzs+=1;
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach( $tzhm as $k=>$v ){
						if( floor($v)==floor($kjjg_7) ){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}elseif( in_array($v,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($v,self::zmgg_calculate($kjjg_7)) ){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '165':
        	case '291':
				$tzhm_0 = trim($data['tzhm']);
				$tzhm = explode(' ',$tzhm_0);
				if( 1==count($tzhm) ){
					if($data['tzhm']==$kjjg_1){$zjzs=$zjzs+1;}
					if($data['tzhm']==$kjjg_2){$zjzs=$zjzs+1;}
					if($data['tzhm']==$kjjg_3){$zjzs=$zjzs+1;}
					if($data['tzhm']==$kjjg_4){$zjzs=$zjzs+1;}
					if($data['tzhm']==$kjjg_5){$zjzs=$zjzs+1;}
					if($data['tzhm']==$kjjg_6){$zjzs=$zjzs+1;}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach( $tzhm as $k=>$v ){
						if( in_array($v,$kjjg_arr) ){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '166':
				$tzhm_1 = trim($data['tzhm']);
				$tzhm = explode(' ',$tzhm_1);
				if( 1==count($tzhm) ){
					is_numeric($tzhm_1) && floor($tzhm_1)==floor($kjjg_1) && $zjzs+=1;
					if( in_array($tzhm_1,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($tzhm_1,self::zmgg_calculate($kjjg_1)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_1,['红波','蓝波','绿波']) && in_array($tzhm_1,self::select_color($kjjg_1)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_1,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($tzhm_1,self::select_animal($kjjg_1)) ){
						$zjzs+=1;
					}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach( $tzhm as $k=>$v ){
						$v = trim($v);
						if( is_numeric($v) && floor($v)==floor($kjjg_1) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($v,self::zmgg_calculate($kjjg_1)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['红波','蓝波','绿波']) && in_array($v,self::select_color($kjjg_1)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($v,self::select_animal($kjjg_1)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
				break;
        	case '167':
				$tzhm_2 = trim($data['tzhm']);
				$tzhm = explode(' ',$tzhm_2);
				if( 1==count($tzhm) ){
					is_numeric($tzhm_2) && floor($tzhm_2)==floor($kjjg_2) && $zjzs+=1;
					if( in_array($tzhm_2,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($tzhm_2,self::zmgg_calculate($kjjg_2)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_2,['红波','蓝波','绿波']) && in_array($tzhm_2,self::select_color($kjjg_2)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_2,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($tzhm_2,self::select_animal($kjjg_2)) ){
						$zjzs+=1;
					}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach( $tzhm as $k=>$v ){
						$v = trim($v);
						if( is_numeric($v) && floor($v)==floor($kjjg_2) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($v,self::zmgg_calculate($kjjg_2)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['红波','蓝波','绿波']) && in_array($v,self::select_color($kjjg_2)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($v,self::select_animal($kjjg_2)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '168':
				$tzhm_3 = trim($data['tzhm']);
				$tzhm = explode(' ',$tzhm_3);
				if( 1==count($tzhm) ){
					is_numeric($tzhm_3) && floor($tzhm_3)==floor($kjjg_3) && $zjzs+=1;
					if( in_array($tzhm_3,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($tzhm_3,self::zmgg_calculate($kjjg_3)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_3,['红波','蓝波','绿波']) && in_array($tzhm_3,self::select_color($kjjg_3)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_3,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($tzhm_3,self::select_animal($kjjg_3)) ){
						$zjzs+=1;
					}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach( $tzhm as $k=>$v ){
						$v = trim($v);
						if( is_numeric($v) && floor($v)==floor($kjjg_3) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($v,self::zmgg_calculate($kjjg_3)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['红波','蓝波','绿波']) && in_array($v,self::select_color($kjjg_3)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($v,self::select_animal($kjjg_3)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '169':
				$tzhm_4 = trim($data['tzhm']);
				$tzhm = explode(' ',$tzhm_4);
				if( 1==count($tzhm) ){
					is_numeric($tzhm_4) && floor($tzhm_4)==floor($kjjg_4) && $zjzs+=1;
					if( in_array($tzhm_4,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($tzhm_4,self::zmgg_calculate($kjjg_4)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_4,['红波','蓝波','绿波']) && in_array($tzhm_4,self::select_color($kjjg_4)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_4,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($tzhm_4,self::select_animal($kjjg_4)) ){
						$zjzs+=1;
					}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach( $tzhm as $k=>$v ){
						$v = trim($v);
						if( is_numeric($v) && floor($v)==floor($kjjg_4) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($v,self::zmgg_calculate($kjjg_4)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['红波','蓝波','绿波']) && in_array($v,self::select_color($kjjg_4)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($v,self::select_animal($kjjg_4)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '170':
				$tzhm_5 = trim($data['tzhm']);
				$tzhm = explode(' ',$tzhm_5);
				if( 1==count($tzhm) ){
					is_numeric($tzhm_5) && floor($tzhm_5)==floor($kjjg_5) && $zjzs+=1;
					if( in_array($tzhm_5,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($tzhm_5,self::zmgg_calculate($kjjg_5)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_5,['红波','蓝波','绿波']) && in_array($tzhm_5,self::select_color($kjjg_5)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_5,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($tzhm_5,self::select_animal($kjjg_5)) ){
						$zjzs+=1;
					}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach( $tzhm as $k=>$v ){
						$v = trim($v);
						if( is_numeric($v) && floor($v)==floor($kjjg_5) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($v,self::zmgg_calculate($kjjg_5)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['红波','蓝波','绿波']) && in_array($v,self::select_color($kjjg_5)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($v,self::select_animal($kjjg_5)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '171':
				$tzhm_6 = trim($data['tzhm']);
				$tzhm = explode(' ',$tzhm_6);
				if( 1==count($tzhm) ){
					is_numeric($tzhm_6) && floor($tzhm_6)==floor($kjjg_6) && $zjzs+=1;
					if( in_array($tzhm_6,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($tzhm_6,self::zmgg_calculate($kjjg_6)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_6,['红波','蓝波','绿波']) && in_array($tzhm_6,self::select_color($kjjg_6)) ){
						$zjzs+=1;
					}
					if( in_array($tzhm_6,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($tzhm_6,self::select_animal($kjjg_6)) ){
						$zjzs+=1;
					}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach( $tzhm as $k=>$v ){
						$v = trim($v);
						if( is_numeric($v) && floor($v)==floor($kjjg_6) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['大','小','单','双','合大','合小','合单','合双','尾大','尾小','尾单','尾双']) && in_array($v,self::zmgg_calculate($kjjg_6)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['红波','蓝波','绿波']) && in_array($v,self::select_color($kjjg_6)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
						if( in_array($v,['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']) && in_array($v,self::select_animal($kjjg_6)) ){
							$zjzs+=1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '172':
        		if($data['tzhm']=="正码一_单"){
        			if($kjjg_1%2!=0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_双"){
        			if($kjjg_1%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_大"){
        			if($kjjg_1>24){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_小"){
        			if($kjjg_1<25){$zjzs=$zjzs+1;}
        		}	
        		if($data['tzhm']=="正码一_合单"){
        			if((substr($kjjg_1,0,1)+substr($kjjg_1,1,1))%2==1){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_合双"){
        			if((substr($kjjg_1,0,1)+substr($kjjg_1,1,1))%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_合大"){
        			if((substr($kjjg_1,0,1)+substr($kjjg_1,1,1))>6){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_合小"){
        			if((substr($kjjg_1,0,1)+substr($kjjg_1,1,1))<7){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_红波"){
        			if($kjjg_1=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_蓝波"){
        			if($kjjg_1=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_绿波"){
        			if($kjjg_1=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="44"){$zjzs=$zjzs+1;}
        			if($kjjg_1=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_尾大"){
        			if(substr($kjjg_1,1,1)>4){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码一_尾小"){
        			if(substr($kjjg_1,1,1)<5){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_单"){
        			if($kjjg_2%2!=0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_双"){
        			if($kjjg_2%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_大"){
        			if($kjjg_2>24){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_小"){
        			if($kjjg_2<25){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_合单"){
        			if((substr($kjjg_2,0,1)+substr($kjjg_2,1,1))%2!=0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_合双"){
        			if((substr($kjjg_2,0,1)+substr($kjjg_2,1,1))%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_合大"){
        			if((substr($kjjg_2,0,1)+substr($kjjg_2,1,1))>6){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_合小"){
        			if((substr($kjjg_2,0,1)+substr($kjjg_2,1,1))<7){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_红波"){
        			if($kjjg_2=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_蓝波"){
        			if($kjjg_2=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_绿波"){
        			if($kjjg_2=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="44"){$zjzs=$zjzs+1;}
        			if($kjjg_2=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_尾大"){
        			if(substr($kjjg_2,1,1)>4){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码二_尾小"){
        			if(substr($kjjg_2,1,1)<5){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_单"){
        			if($kjjg_3%2!=0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_双"){
        			if($kjjg_3%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_大"){
        			if($kjjg_3>24){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_小"){
        			if($kjjg_3<25){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_合单"){
        			if((substr($kjjg_3,0,1)+substr($kjjg_3,1,1))%2!=0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_合双"){
        			if((substr($kjjg_3,0,1)+substr($kjjg_3,1,1))%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_合大"){
        			if((substr($kjjg_3,0,1)+substr($kjjg_3,1,1))>6){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_合小"){
        			if((substr($kjjg_3,0,1)+substr($kjjg_3,1,1))<7){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_红波"){
        			if($kjjg_3=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_蓝波"){
        			if($kjjg_3=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_绿波"){
        			if($kjjg_3=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="44"){$zjzs=$zjzs+1;}
        			if($kjjg_3=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_尾大"){
        			if(substr($kjjg_3,1,1)>4){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码三_尾小"){
        			if(substr($kjjg_3,1,1)<5){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_单"){
        			if($kjjg_4%2!=0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_双"){
        			if($kjjg_4%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_大"){
        			if($kjjg_4>24){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_小"){
        			if($kjjg_4<25){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_合单"){
        			if((substr($kjjg_4,0,1)+substr($kjjg_4,1,1))%2!=0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_合双"){
        			if((substr($kjjg_4,0,1)+substr($kjjg_4,1,1))%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_合大"){
        			if((substr($kjjg_4,0,1)+substr($kjjg_4,1,1))>6){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_合小"){
        			if((substr($kjjg_4,0,1)+substr($kjjg_4,1,1))<7){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_红波"){
        			if($kjjg_4=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_蓝波"){
        			if($kjjg_4=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_绿波"){
        			if($kjjg_4=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="44"){$zjzs=$zjzs+1;}
        			if($kjjg_4=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_尾大"){
        			if(substr($kjjg_4,1,1)>4){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码四_尾小"){
        			if(substr($kjjg_4,1,1)<5){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_单"){
        			if($kjjg_5%2!=0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_双"){
        			if($kjjg_5%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_大"){
        			if($kjjg_5>24){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_小"){
        			if($kjjg_5<25){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_合单"){
        			if((substr($kjjg_5,0,1)+substr($kjjg_5,1,1))%2!=0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_合双"){
        			if((substr($kjjg_5,0,1)+substr($kjjg_5,1,1))%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_合大"){
        			if((substr($kjjg_5,0,1)+substr($kjjg_5,1,1))>6){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_合小"){
        			if((substr($kjjg_5,0,1)+substr($kjjg_5,1,1))<7){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_红波"){
        			if($kjjg_5=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_蓝波"){
        			if($kjjg_5=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_绿波"){
        			if($kjjg_5=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="44"){$zjzs=$zjzs+1;}
        			if($kjjg_5=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_尾大"){
        			if(substr($kjjg_5,1,1)>4){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码五_尾小"){
        			if(substr($kjjg_5,1,1)<5){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_单"){
        			if($kjjg_6%2==1){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_双"){
        			if($kjjg_6%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_大"){
        			if($kjjg_6>24){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_小"){
        			if($kjjg_6<25){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_合单"){
        			if((substr($kjjg_6,0,1)+substr($kjjg_6,1,1))%2==1){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_合双"){
        			if((substr($kjjg_6,0,1)+substr($kjjg_6,1,1))%2==0){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_合大"){
        			if((substr($kjjg_6,0,1)+substr($kjjg_6,1,1))>6){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_合小"){
        			if((substr($kjjg_6,0,1)+substr($kjjg_6,1,1))<7){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_红波"){
        			if($kjjg_6=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_蓝波"){
        			if($kjjg_6=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_绿波"){
        			if($kjjg_6=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="44"){$zjzs=$zjzs+1;}
        			if($kjjg_6=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_尾大"){
        			if(substr($kjjg_6,1,1)>4){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="正码六_尾小"){
        			if(substr($kjjg_6,1,1)<5){$zjzs=$zjzs+1;}
        		}
        		break;
        	case '173':
        		$prize_num = 0;
        		$spc_gg = 1;
        		$tzhm = explode(',',$data['tzhm']);
        		$tzhm_count = count($tzhm);
        		if(in_array($tzhm[0],self::zmgg_calculate($kjjg_1)) || in_array($tzhm[0],self::select_color($kjjg_1))) $prize_num += 1;
        		if(in_array($tzhm[1],self::zmgg_calculate($kjjg_2)) || in_array($tzhm[1],self::select_color($kjjg_2))) $prize_num += 1;
        		if(in_array($tzhm[2],self::zmgg_calculate($kjjg_3)) || in_array($tzhm[2],self::select_color($kjjg_3))) $prize_num += 1;
        		if(in_array($tzhm[3],self::zmgg_calculate($kjjg_4)) || in_array($tzhm[3],self::select_color($kjjg_4))) $prize_num += 1;
        		if(in_array($tzhm[4],self::zmgg_calculate($kjjg_5)) || in_array($tzhm[4],self::select_color($kjjg_5))) $prize_num += 1;
        		if(in_array($tzhm[5],self::zmgg_calculate($kjjg_6)) || in_array($tzhm[5],self::select_color($kjjg_6))) $prize_num += 1;
        		if(($tzhm[0]=='大' ||  $tzhm[0]=='小' ) && $kjjg_1==49) {
        			$prize_num += 1;
        			$spc_gg = 1.76;
        		} elseif(($tzhm[1]=='大' ||  $tzhm[1]=='小' ) && $kjjg_2==49) {
        			$prize_num += 1;
        			$spc_gg = 1.76;
        		} elseif(($tzhm[2]=='大' ||  $tzhm[2]=='小' ) && $kjjg_3==49) {
        			$prize_num += 1;
        			$spc_gg = 1.76;
        		} elseif(($tzhm[3]=='大' ||  $tzhm[3]=='小' ) && $kjjg_4==49) {
        			$prize_num += 1;
        			$spc_gg = 1.76;
        		} elseif(($tzhm[4]=='大' ||  $tzhm[4]=='小' ) && $kjjg_5==49) {
        			$prize_num += 1;
        			$spc_gg = 1.76;
        		} elseif(($tzhm[5]=='大' ||  $tzhm[5]=='小' ) && $kjjg_6==49) {
        			$prize_num += 1;
        			$spc_gg = 1.76;
        		}
        		if(($tzhm_count == $prize_num) && ($tzhm_count >= 2)) $zjzs = 1;
        		break;
        	case '174':
        		if(strpos($data['tzhm'],$kjjg_1)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_2)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_3)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_4)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_5)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_6)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if($zhongqiuhm>3){$zjzs=$zjzs+($zhongqiuhm*($zhongqiuhm-1)*($zhongqiuhm-2)*($zhongqiuhm-3))/24;}
        		break;
        	case '181':
        		if(strpos($data['tzhm'],$kjjg_1)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_2)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_3)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_4)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_5)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_6)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if($zhongqiuhm>2){$zjzs=$zjzs+($zhongqiuhm*($zhongqiuhm-1)*($zhongqiuhm-2))/6;}
        		break;
        	case '188':
        		if(strpos($data['tzhm'],$kjjg_1)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_2)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_3)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_4)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_5)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_6)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_7)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if($zhongqiuhm>2){$zjzs=$zjzs+($zhongqiuhm*($zhongqiuhm-1)*($zhongqiuhm-2))/6;}elseif($zhongqiuhm==2){$zjzs=$zjzs+1;}
        		$plhf=explode("|",$data['dqpl']);
        		if($zhongqiuhm==2){$data['dqpl']=$plhf[0];}
        		if($zhongqiuhm>=3){$data['dqpl']=$plhf[1];}
        		break;
        	case '195':
        		if(strpos($data['tzhm'],$kjjg_1)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_2)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_3)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_4)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_5)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_6)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if($zhongqiuhm>=2){$zjzs=$zjzs+($zhongqiuhm*($zhongqiuhm-1))/2;}
        		break;
        	case '204':
        		if(strpos($data['tzhm'],$kjjg_1)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_2)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_3)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_4)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_5)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_6)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_7)!==false){$zhongqiuhm=$zhongqiuhm+1;$tem_zf=1;}
        		
        		if($zhongqiuhm>=2){$zjzs=$zjzs+($zhongqiuhm*($zhongqiuhm-1))/2;}
        		$plhf=explode("|",$data['dqpl']);
        		if($tem_zf==1){$data['dqpl']=$plhf[0];}else{$data['dqpl']=$plhf[1];}
        		break;
        	case '213':
        		if(strpos($data['tzhm'],$kjjg_1)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_2)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_3)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_4)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_5)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_6)!==false){$zhongqiuhm=$zhongqiuhm+1;}
        		if(strpos($data['tzhm'],$kjjg_7)!==false){$zhongqiuhm=$zhongqiuhm+1;$tem_zf=1;}
        		
        		if($zhongqiuhm>=2 && $tem_zf==1){$zjzs=$zjzs+($zhongqiuhm*($zhongqiuhm-1))/2;}
        		break;
        	case '222':
        		$hmaray=explode(" ",$data['tzhm']);
        		foreach ($hmaray as $val){
        			foreach ($kjjg_arr as $value){
        				if(strpos('10 22 34 46', $value)!==false && $val=="牛"){$zongxiao_1=1;}
        				//----
        				if(strpos('09 21 33 45', $value)!==false && $val=="虎"){$zongxiao_2=1;}
        				//----
        				if(strpos('08 20 32 44', $value)!==false && $val=="兔"){$zongxiao_3=1;}
        				//----
        				if(strpos('07 19 31 43', $value)!==false && $val=="龙"){$zongxiao_4=1;}
        				//----
        				if(strpos('06 18 30 42', $value)!==false && $val=="蛇"){$zongxiao_5=1;}
        				//----
        				if(strpos('05 17 29 41', $value)!==false && $val=="马"){$zongxiao_6=1;}
        				//----
        				if(strpos('04 16 28 40', $value)!==false && $val=="羊"){$zongxiao_7=1;}
        				//----
        				if(strpos('03 15 27 39', $value)!==false && $val=="猴"){$zongxiao_8=1;}
        				//----
        				if(strpos('02 14 26 38', $value)!==false && $val=="鸡"){$zongxiao_9=1;}
        				//----
        				if(strpos('01 13 25 37 49', $value)!==false && $val=="狗"){$zongxiao_10=1;}
        				//----
        				if(strpos('12 24 36 48', $value)!==false && $val=="猪"){$zongxiao_11=1;}
        				//----
        				if(strpos('11 23 35 47', $value)!==false && $val=="鼠"){$zongxiao_12=1;}
        				
        			}
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10+$zongxiao_11+$zongxiao_12;
        		$zjzs=$zjzs+($zongzhongsys*($zongzhongsys-1))/2;
        		break;
        	case '223':
        		$hmaray=explode(" ",$data['tzhm']);
        		foreach ($hmaray as $val){
        			foreach ($kjjg_arr as $value){
        				if(strpos('10 22 34 46', $value)!==false && $val=="牛"){$zongxiao_1=1;}
	        			//----
	        			if(strpos('09 21 33 45', $value)!==false && $val=="虎"){$zongxiao_2=1;}
	        			//----
	        			if(strpos('08 20 32 44', $value)!==false && $val=="兔"){$zongxiao_3=1;}
	        			//----
	        			if(strpos('07 19 31 43', $value)!==false && $val=="龙"){$zongxiao_4=1;}
	        			//----
	        			if(strpos('06 18 30 42', $value)!==false && $val=="蛇"){$zongxiao_5=1;}
	        			//----
	        			if(strpos('05 17 29 41', $value)!==false && $val=="马"){$zongxiao_6=1;}
	        			//----
	        			if(strpos('04 16 28 40', $value)!==false && $val=="羊"){$zongxiao_7=1;}
	        			//----
	        			if(strpos('03 15 27 39', $value)!==false && $val=="猴"){$zongxiao_8=1;}
	        			//----
	        			if(strpos('02 14 26 38', $value)!==false && $val=="鸡"){$zongxiao_9=1;}
	        			//----
	        			if(strpos('01 13 25 37 49', $value)!==false && $val=="狗"){$zongxiao_10=1;}
	        			//----
	        			if(strpos('12 24 36 48', $value)!==false && $val=="猪"){$zongxiao_11=1;}
	        			//----
	        			if(strpos('11 23 35 47', $value)!==false && $val=="鼠"){$zongxiao_12=1;}
        				//----
        			}
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10+$zongxiao_11+$zongxiao_12;
        		$zjzs=$zjzs+($zongzhongsys*($zongzhongsys-1)*($zongzhongsys-2))/6;
        		break;
        	case '224':
        		$hmaray=explode(" ",$data['tzhm']);
        		foreach ($hmaray as $val){
        			foreach ($kjjg_arr as $value){
        				if(strpos('10 22 34 46', $value)!==false && $val=="牛"){$zongxiao_1=1;}
	        			//----
	        			if(strpos('09 21 33 45', $value)!==false && $val=="虎"){$zongxiao_2=1;}
	        			//----
	        			if(strpos('08 20 32 44', $value)!==false && $val=="兔"){$zongxiao_3=1;}
	        			//----
	        			if(strpos('07 19 31 43', $value)!==false && $val=="龙"){$zongxiao_4=1;}
	        			//----
	        			if(strpos('06 18 30 42', $value)!==false && $val=="蛇"){$zongxiao_5=1;}
	        			//----
	        			if(strpos('05 17 29 41', $value)!==false && $val=="马"){$zongxiao_6=1;}
	        			//----
	        			if(strpos('04 16 28 40', $value)!==false && $val=="羊"){$zongxiao_7=1;}
	        			//----
	        			if(strpos('03 15 27 39', $value)!==false && $val=="猴"){$zongxiao_8=1;}
	        			//----
	        			if(strpos('02 14 26 38', $value)!==false && $val=="鸡"){$zongxiao_9=1;}
	        			//----
	        			if(strpos('01 13 25 37 49', $value)!==false && $val=="狗"){$zongxiao_10=1;}
	        			//----
	        			if(strpos('12 24 36 48', $value)!==false && $val=="猪"){$zongxiao_11=1;}
	        			//----
	        			if(strpos('11 23 35 47', $value)!==false && $val=="鼠"){$zongxiao_12=1;}
        				//----
        			}
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10+$zongxiao_11+$zongxiao_12;
        		$zjzs=$zjzs+($zongzhongsys*($zongzhongsys-1)*($zongzhongsys-2)*($zongzhongsys-3))/24;
        		break;
        	case '225':
        		$hmaray=explode(" ",$data['tzhm']);
        		foreach ($hmaray as $val){
        			foreach ($kjjg_arr as $value){
        				if(strpos('10 22 34 46', $value)!==false && $val=="牛"){$zongxiao_1=1;}
	        			//----
	        			if(strpos('09 21 33 45', $value)!==false && $val=="虎"){$zongxiao_2=1;}
	        			//----
	        			if(strpos('08 20 32 44', $value)!==false && $val=="兔"){$zongxiao_3=1;}
	        			//----
	        			if(strpos('07 19 31 43', $value)!==false && $val=="龙"){$zongxiao_4=1;}
	        			//----
	        			if(strpos('06 18 30 42', $value)!==false && $val=="蛇"){$zongxiao_5=1;}
	        			//----
	        			if(strpos('05 17 29 41', $value)!==false && $val=="马"){$zongxiao_6=1;}
	        			//----
	        			if(strpos('04 16 28 40', $value)!==false && $val=="羊"){$zongxiao_7=1;}
	        			//----
	        			if(strpos('03 15 27 39', $value)!==false && $val=="猴"){$zongxiao_8=1;}
	        			//----
	        			if(strpos('02 14 26 38', $value)!==false && $val=="鸡"){$zongxiao_9=1;}
	        			//----
	        			if(strpos('01 13 25 37 49', $value)!==false && $val=="狗"){$zongxiao_10=1;}
	        			//----
	        			if(strpos('12 24 36 48', $value)!==false && $val=="猪"){$zongxiao_11=1;}
	        			//----
	        			if(strpos('11 23 35 47', $value)!==false && $val=="鼠"){$zongxiao_12=1;}
		        		//----
        			}
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10+$zongxiao_11+$zongxiao_12;
        		$zjzs=$zjzs+($zongzhongsys*($zongzhongsys-1)*($zongzhongsys-2)*($zongzhongsys-3)*($zongzhongsys-4))/120;
        		break;
        	case '226':
        		$hmaray=explode(" ",$data['tzhm']);
        		foreach ($hmaray as $val){
        			foreach ($kjjg_arr as $value){
        				if($value=="10" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="20" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="30" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="40" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="01" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="11" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="21" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="31" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="41" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="02" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="12" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="22" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="32" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="42" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="03" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="13" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="23" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="33" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="43" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="04" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="14" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="24" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="34" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="44" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="05" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="15" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="25" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="35" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="45" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="06" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="16" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="26" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="36" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="46" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="07" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="17" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="27" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="37" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="47" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="08" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="18" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="28" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="38" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="48" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="09" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="19" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="29" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="39" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="49" && $val=="9尾"){$zongxiao_10=1;}
        			}
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10;
        		$zjzs=$zjzs+($zongzhongsys*($zongzhongsys-1))/2;
        		break;
        	case '227':
        		$hmaray=explode(" ",$data['tzhm']);
        		foreach ($hmaray as $val){
        			foreach ($kjjg_arr as $value){
        				if($value=="10" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="20" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="30" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="40" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="01" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="11" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="21" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="31" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="41" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="02" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="12" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="22" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="32" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="42" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="03" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="13" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="23" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="33" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="43" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="04" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="14" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="24" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="34" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="44" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="05" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="15" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="25" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="35" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="45" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="06" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="16" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="26" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="36" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="46" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="07" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="17" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="27" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="37" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="47" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="08" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="18" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="28" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="38" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="48" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="09" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="19" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="29" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="39" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="49" && $val=="9尾"){$zongxiao_10=1;}
        			}
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10;
        		$zjzs=$zjzs+($zongzhongsys*($zongzhongsys-1)*($zongzhongsys-2))/6;
        		break;
        	case '228':
        		$hmaray=explode(" ",$data['tzhm']);
        		foreach ($hmaray as $val){
        			foreach ($kjjg_arr as $value){
        				if($value=="10" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="20" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="30" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="40" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="01" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="11" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="21" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="31" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="41" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="02" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="12" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="22" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="32" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="42" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="03" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="13" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="23" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="33" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="43" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="04" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="14" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="24" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="34" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="44" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="05" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="15" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="25" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="35" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="45" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="06" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="16" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="26" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="36" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="46" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="07" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="17" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="27" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="37" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="47" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="08" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="18" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="28" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="38" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="48" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="09" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="19" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="29" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="39" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="49" && $val=="9尾"){$zongxiao_10=1;}
        			}
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10;
        		$zjzs=$zjzs+($zongzhongsys*($zongzhongsys-1)*($zongzhongsys-2)*($zongzhongsys-3))/24;
        		break;
        	case '229':
        		$hmaray=explode(" ",$data['tzhm']);
        		foreach ($hmaray as $val){
        			foreach ($kjjg_arr as $value){
        				if($value=="10" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="20" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="30" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="40" && $val=="0尾"){$zongxiao_1=1;}
        				if($value=="01" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="11" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="21" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="31" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="41" && $val=="1尾"){$zongxiao_2=1;}
        				if($value=="02" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="12" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="22" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="32" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="42" && $val=="2尾"){$zongxiao_3=1;}
        				if($value=="03" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="13" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="23" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="33" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="43" && $val=="3尾"){$zongxiao_4=1;}
        				if($value=="04" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="14" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="24" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="34" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="44" && $val=="4尾"){$zongxiao_5=1;}
        				if($value=="05" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="15" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="25" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="35" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="45" && $val=="5尾"){$zongxiao_6=1;}
        				if($value=="06" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="16" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="26" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="36" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="46" && $val=="6尾"){$zongxiao_7=1;}
        				if($value=="07" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="17" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="27" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="37" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="47" && $val=="7尾"){$zongxiao_8=1;}
        				if($value=="08" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="18" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="28" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="38" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="48" && $val=="8尾"){$zongxiao_9=1;}
        				if($value=="09" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="19" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="29" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="39" && $val=="9尾"){$zongxiao_10=1;}
        				if($value=="49" && $val=="9尾"){$zongxiao_10=1;}
        			}
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10;
        		$zjzs=$zjzs+($zongzhongsys*($zongzhongsys-1)*($zongzhongsys-2)*($zongzhongsys-3)*($zongzhongsys-4))/120;
        		break;
        	case '230':
        		if(strpos($data['tzhm'],$kjjg_1) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) === false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '231':
        		if(strpos($data['tzhm'],$kjjg_1) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) === false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '232':
        		if(strpos($data['tzhm'],$kjjg_1) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) === false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '233':
        		if(strpos($data['tzhm'],$kjjg_1) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) === false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '234':
        		if(strpos($data['tzhm'],$kjjg_1) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) === false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '235':
        		if(strpos($data['tzhm'],$kjjg_1) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) === false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '236':
        		if(strpos($data['tzhm'],$kjjg_1) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) === false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '237':
        		if(strpos($data['tzhm'],$kjjg_1) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) === false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) === false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '238':
        		foreach ($kjjg_8 as $value){
        			if(strpos('10 22 34 46', $value)!==false && $data['tzhm']=="牛"){$zongxiao_1=1;}
        			//----
        			if(strpos('09 21 33 45', $value)!==false && $data['tzhm']=="虎"){$zongxiao_2=1;}
        			//----
        			if(strpos('08 20 32 44', $value)!==false && $data['tzhm']=="兔"){$zongxiao_3=1;}
        			//----
        			if(strpos('07 19 31 43', $value)!==false && $data['tzhm']=="龙"){$zongxiao_4=1;}
        			//----
        			if(strpos('06 18 30 42', $value)!==false && $data['tzhm']=="蛇"){$zongxiao_5=1;}
        			//----
        			if(strpos('05 17 29 41', $value)!==false && $data['tzhm']=="马"){$zongxiao_6=1;}
        			//----
        			if(strpos('04 16 28 40', $value)!==false && $data['tzhm']=="羊"){$zongxiao_7=1;}
        			//----
        			if(strpos('03 15 27 39', $value)!==false && $data['tzhm']=="猴"){$zongxiao_8=1;}
        			//----
        			if(strpos('02 14 26 38', $value)!==false && $data['tzhm']=="鸡"){$zongxiao_9=1;}
        			//----
        			if(strpos('01 13 25 37 49', $value)!==false && $data['tzhm']=="狗"){$zongxiao_10=1;}
        			//----
        			if(strpos('12 24 36 48', $value)!==false && $data['tzhm']=="猪"){$zongxiao_11=1;}
        			//----
        			if(strpos('11 23 35 47', $value)!==false && $data['tzhm']=="鼠"){$zongxiao_12=1;}
	        		//----
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10+$zongxiao_11+$zongxiao_12;
        		$zjzs=$zjzs+$zongzhongsys;
        		break;
        	case '239':
				$tzhm = explode(' ',trim($data['tzhm']));
				if( 1==count($tzhm) ){
					if(strpos('10 22 34 46', $kjjg_7)!==false && $data['tzhm']=="牛"){$zongxiao_1=1;}
					if(strpos('09 21 33 45', $kjjg_7)!==false && $data['tzhm']=="虎"){$zongxiao_2=1;}
					if(strpos('08 20 32 44', $kjjg_7)!==false && $data['tzhm']=="兔"){$zongxiao_3=1;}
					if(strpos('07 19 31 43', $kjjg_7)!==false && $data['tzhm']=="龙"){$zongxiao_4=1;}
					if(strpos('06 18 30 42', $kjjg_7)!==false && $data['tzhm']=="蛇"){$zongxiao_5=1;}
					if(strpos('05 17 29 41', $kjjg_7)!==false && $data['tzhm']=="马"){$zongxiao_6=1;}
					if(strpos('04 16 28 40', $kjjg_7)!==false && $data['tzhm']=="羊"){$zongxiao_7=1;}
					if(strpos('03 15 27 39', $kjjg_7)!==false && $data['tzhm']=="猴"){$zongxiao_8=1;}
					if(strpos('02 14 26 38', $kjjg_7)!==false && $data['tzhm']=="鸡"){$zongxiao_9=1;}
					if(strpos('01 13 25 37 49', $kjjg_7)!==false && $data['tzhm']=="狗"){$zongxiao_10=1;}
					if(strpos('12 24 36 48', $kjjg_7)!==false && $data['tzhm']=="猪"){$zongxiao_11=1;}
					if(strpos('11 23 35 47', $kjjg_7)!==false && $data['tzhm']=="鼠"){$zongxiao_12=1;}
					$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10+$zongxiao_11+$zongxiao_12;
					$zjzs=$zjzs+$zongzhongsys;
				}else{
					$pl_arr = explode( '|',trim($data['dqpl']) );
					$is_new = 1;
					$kjjg_7 = intval($kjjg_7);
					foreach( $tzhm as $k=>$v ){
						if((in_array($kjjg_7,[10,22,34,46]) && '牛'==$v)||
							(in_array($kjjg_7,[9,21,33,45]) && '虎'==$v)||
							(in_array($kjjg_7,[8,20, 32, 44]) && '兔'==$v)||
							(in_array($kjjg_7,[7, 19, 31, 43]) && '龙'==$v)||
							(in_array($kjjg_7,[6, 18, 30, 42]) && '蛇'==$v)||
							(in_array($kjjg_7,[5, 17, 29, 41]) && '马'==$v)||
							(in_array($kjjg_7,[4, 16, 28, 40]) && '羊'==$v)||
							(in_array($kjjg_7,[3, 15, 27, 39]) && '猴'==$v)||
							(in_array($kjjg_7,[2, 14, 26, 38]) && '鸡'==$v)||
							(in_array($kjjg_7,[1, 13, 25, 37, 49]) && '狗'==$v)||
							(in_array($kjjg_7,[12, 24, 36, 48]) && '猪'==$v)||
							(in_array($kjjg_7,[11, 23, 35, 47]) && '鼠'==$v)
						){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '240':
				$tzhm = explode(' ',trim($data['tzhm']));
				if( 1==count($tzhm) ){
					foreach ($kjjg_arr as $value){
						if(strpos('10 22 34 46', $value)!==false && $data['tzhm']=="牛"){$zongxiao_1=1;}
						if(strpos('09 21 33 45', $value)!==false && $data['tzhm']=="虎"){$zongxiao_2=1;}
						if(strpos('08 20 32 44', $value)!==false && $data['tzhm']=="兔"){$zongxiao_3=1;}
						if(strpos('07 19 31 43', $value)!==false && $data['tzhm']=="龙"){$zongxiao_4=1;}
						if(strpos('06 18 30 42', $value)!==false && $data['tzhm']=="蛇"){$zongxiao_5=1;}
						if(strpos('05 17 29 41', $value)!==false && $data['tzhm']=="马"){$zongxiao_6=1;}
						if(strpos('04 16 28 40', $value)!==false && $data['tzhm']=="羊"){$zongxiao_7=1;}
						if(strpos('03 15 27 39', $value)!==false && $data['tzhm']=="猴"){$zongxiao_8=1;}
						if(strpos('02 14 26 38', $value)!==false && $data['tzhm']=="鸡"){$zongxiao_9=1;}
						if(strpos('01 13 25 37 49', $value)!==false && $data['tzhm']=="狗"){$zongxiao_10=1;}
						if(strpos('12 24 36 48', $value)!==false && $data['tzhm']=="猪"){$zongxiao_11=1;}
						if(strpos('11 23 35 47', $value)!==false && $data['tzhm']=="鼠"){$zongxiao_12=1;}
					}
					$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10+$zongxiao_11+$zongxiao_12;
					if($zongzhongsys>=1){$zjzs = $zjzs+1;}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					foreach($tzhm as $k=>$v){
						if( ('牛'==$v && !empty(array_intersect(['10','22','34','46'],$kjjg_arr))) ||
							('虎'==$v && !empty(array_intersect(['09','21','33','45'],$kjjg_arr))) ||
							('兔'==$v && !empty(array_intersect(['08','20','32','44'],$kjjg_arr))) ||
							('龙'==$v && !empty(array_intersect(['07','19','31','43'],$kjjg_arr))) ||
							('蛇'==$v && !empty(array_intersect(['06','18','30','42'],$kjjg_arr))) ||
							('马'==$v && !empty(array_intersect(['05','17','29','41'],$kjjg_arr))) ||
							('羊'==$v && !empty(array_intersect(['04','16','28','40'],$kjjg_arr))) ||
							('猴'==$v && !empty(array_intersect(['03','15','27','39'],$kjjg_arr))) ||
							('鸡'==$v && !empty(array_intersect(['02','14','26','38'],$kjjg_arr))) ||
							('狗'==$v && !empty(array_intersect(['01','13','25','37','49'],$kjjg_arr))) ||
							('猪'==$v && !empty(array_intersect(['12','24','36','48'],$kjjg_arr))) ||
							('鼠'==$v && !empty(array_intersect(['11','23','35','47'],$kjjg_arr)))){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '241':
        		foreach ($kjjg_arr as $value){
        			if(strpos('10 22 34 46', $value)!==false){$zongxiao_1=1;}
        			//----
        			if(strpos('09 21 33 45', $value)!==false){$zongxiao_2=1;}
        			//----
        			if(strpos('08 20 32 44', $value)!==false){$zongxiao_3=1;}
        			//----
        			if(strpos('07 19 31 43', $value)!==false){$zongxiao_4=1;}
        			//----
        			if(strpos('06 18 30 42', $value)!==false){$zongxiao_5=1;}
        			//----
        			if(strpos('05 17 29 41', $value)!==false){$zongxiao_6=1;}
        			//----
        			if(strpos('04 16 28 40', $value)!==false){$zongxiao_7=1;}
        			//----
        			if(strpos('03 15 27 39', $value)!==false){$zongxiao_8=1;}
        			//----
        			if(strpos('02 14 26 38', $value)!==false){$zongxiao_9=1;}
        			//----
        			if(strpos('01 13 25 37 49', $value)!==false){$zongxiao_10=1;}
        			//----
        			if(strpos('12 24 36 48', $value)!==false){$zongxiao_11=1;}
        			//----
        			if(strpos('11 23 35 47', $value)!==false){$zongxiao_12=1;}
        			//----
        		}
        		$zongzhongsys=$zongxiao_1+$zongxiao_2+$zongxiao_3+$zongxiao_4+$zongxiao_5+$zongxiao_6+$zongxiao_7+$zongxiao_8+$zongxiao_9+$zongxiao_10+$zongxiao_11+$zongxiao_12;
        		if($zongzhongsys>=2 && $zongzhongsys<=4 && $data['tzhm']=='234肖'){$zjzs = $zjzs+1;}
        		if($zongzhongsys==5 && $data['tzhm']=='5肖'){$zjzs = $zjzs+1;}
        		if($zongzhongsys==6 && $data['tzhm']=='6肖'){$zjzs = $zjzs+1;}
        		if($zongzhongsys==7 && $data['tzhm']=='7肖'){$zjzs = $zjzs+1;}
        		if($zongzhongsys%2==1 && $data['tzhm']=='总肖单'){$zjzs = $zjzs+1;}
        		if($zongzhongsys%2==0 && $data['tzhm']=='总肖双'){$zjzs = $zjzs+1;}
        		break;
        	case '242':
        	    $sx = '无';
        		if(strpos('10 22 34 46', $kjjg_7)!==false) $sx = '牛';
        		if(strpos('09 21 33 45', $kjjg_7)!==false) $sx = '虎';
				if(strpos('08 20 32 44', $kjjg_7)!==false) $sx = '兔';
        		if(strpos('07 19 31 43', $kjjg_7)!==false) $sx = '龙';
        		if(strpos('06 18 30 42', $kjjg_7)!==false) $sx = '蛇';
        		if(strpos('05 17 29 41', $kjjg_7)!==false) $sx = '马';
        		if(strpos('04 16 28 40', $kjjg_7)!==false) $sx = '羊';
        		if(strpos('03 15 27 39', $kjjg_7)!==false) $sx = '猴';
        		if(strpos('02 14 26 38', $kjjg_7)!==false) $sx = '鸡';
        		if(strpos('01 13 25 37 49', $kjjg_7)!==false) $sx = '狗';
        		if(strpos('12 24 36 48', $kjjg_7)!==false) $sx = '猪';
        		if(strpos('11 23 35 47', $kjjg_7)!==false) $sx = '鼠';
        		if(strpos($data['tzhm'], $sx)!==false){$zjzs = $zjzs+1;}

        		break;
        	case '250':
        		if($data['tzhm']=="红波"){
        			if($kjjg_7=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝波"){
        			if($kjjg_7=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿波"){
        			if($kjjg_7=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="44"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="49"){$zjzs=$zjzs+1;}
        		}
        		break;
        	case '251':
        		if($data['tzhm']=="红单"){
        			if($kjjg_7=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="45"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="红双"){
        			if($kjjg_7=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="红大"){
        			if($kjjg_7=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="红小"){
        			if($kjjg_7=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="24"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝单"){
        			if($kjjg_7=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="47"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝双"){
        			if($kjjg_7=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝大"){
        			if($kjjg_7=="48"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="25"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝小"){
        			if($kjjg_7=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="20"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿单"){
        			if($kjjg_7=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿双"){
        			if($kjjg_7=="06" || $kjjg_7=="16" || $kjjg_7=="22" || $kjjg_7=="28" || $kjjg_7=="32" || $kjjg_7=="38" || $kjjg_7=="44"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿大"){
        			if($kjjg_7=="27" || $kjjg_7=="28" || $kjjg_7=="32" || $kjjg_7=="33" || $kjjg_7=="38" || $kjjg_7=="39" || $kjjg_7=="43" || $kjjg_7=="44" || $kjjg_7=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿小"){
        			if($kjjg_7=="05" || $kjjg_7=="06" || $kjjg_7=="11" || $kjjg_7=="16" || $kjjg_7=="17" || $kjjg_7=="21" || $kjjg_7=="22"){$zjzs=$zjzs+1;}
        		}
        		break;
        	case '252':
        		if($data['tzhm']=="红大单"){
        			if($kjjg_7=="29" || $kjjg_7=="35" || $kjjg_7=="45"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="红大双"){
        			if($kjjg_7=="30" || $kjjg_7=="34" || $kjjg_7=="40" || $kjjg_7=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="红小单"){
        			if($kjjg_7=="01" || $kjjg_7=="07" || $kjjg_7=="13" || $kjjg_7=="19" || $kjjg_7=="23"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="红小双"){
        			if($kjjg_7=="02" || $kjjg_7=="08" || $kjjg_7=="12" || $kjjg_7=="18" || $kjjg_7=="24"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝大单"){
        			if($kjjg_7=="25" || $kjjg_7=="31" || $kjjg_7=="37" || $kjjg_7=="41" || $kjjg_7=="47"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝大双"){
        			if($kjjg_7=="26" || $kjjg_7=="36" || $kjjg_7=="42" || $kjjg_7=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝小单"){
        			if($kjjg_7=="03" || $kjjg_7=="09" || $kjjg_7=="15"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝小双"){
        			if($kjjg_7=="04" || $kjjg_7=="10" || $kjjg_7=="14" || $kjjg_7=="20"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿大单"){
        			if($kjjg_7=="27" || $kjjg_7=="33" || $kjjg_7=="39" || $kjjg_7=="43" || $kjjg_7=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿大双"){
        			if($kjjg_7=="28" || $kjjg_7=="32" || $kjjg_7=="38" || $kjjg_7=="44"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿小单"){
        			if($kjjg_7=="05" || $kjjg_7=="11" || $kjjg_7=="17" || $kjjg_7=="21"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿小双"){
        			if($kjjg_7=="06" || $kjjg_7=="16" || $kjjg_7=="22"){$zjzs=$zjzs+1;}
        		}
        		break;
        	case '253':
        		if($data['tzhm']=="红波"){
        			foreach ($kjjg_arr as $value){
        				if($value=="01"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="02"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="07"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="08"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="12"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="13"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="18"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="19"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="23"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="24"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="29"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="30"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="34"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="35"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="40"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="45"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="46"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="03"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="04"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="09"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="10"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="14"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="15"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="20"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="25"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="26"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="31"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="36"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="37"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="41"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="42"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="47"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="48"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="05"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="06"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="11"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="16"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="17"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="21"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="22"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="27"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="28"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="32"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="33"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="38"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="39"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="43"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="44"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="49"){$qisebo_lvbo=$qisebo_lvbo+1;}
        			}
        			if($qisebo_hongbo>$qisebo_lanbo && $qisebo_hongbo>$qisebo_lvbo){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="蓝波"){
        			foreach ($kjjg_arr as $value){
        				if($value=="01"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="02"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="07"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="08"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="12"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="13"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="18"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="19"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="23"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="24"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="29"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="30"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="34"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="35"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="40"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="45"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="46"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="03"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="04"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="09"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="10"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="14"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="15"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="20"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="25"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="26"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="31"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="36"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="37"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="41"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="42"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="47"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="48"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="05"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="06"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="11"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="16"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="17"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="21"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="22"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="27"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="28"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="32"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="33"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="38"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="39"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="43"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="44"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="49"){$qisebo_lvbo=$qisebo_lvbo+1;}
        			}
        			if($qisebo_lanbo>$qisebo_hongbo && $qisebo_lanbo>$qisebo_lvbo){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="绿波"){
        			foreach ($kjjg_arr as $value){
        				if($value=="01"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="02"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="07"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="08"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="12"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="13"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="18"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="19"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="23"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="24"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="29"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="30"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="34"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="35"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="40"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="45"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="46"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="03"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="04"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="09"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="10"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="14"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="15"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="20"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="25"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="26"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="31"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="36"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="37"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="41"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="42"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="47"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="48"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="05"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="06"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="11"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="16"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="17"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="21"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="22"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="27"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="28"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="32"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="33"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="38"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="39"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="43"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="44"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="49"){$qisebo_lvbo=$qisebo_lvbo+1;}
        			}
        			if($qisebo_lvbo>$qisebo_hongbo && $qisebo_lvbo>$qisebo_lanbo){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="和局"){
        			foreach ($kjjg_arr as $value){
        				if($value=="01"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="02"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="07"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="08"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="12"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="13"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="18"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="19"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="23"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="24"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="29"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="30"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="34"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="35"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="40"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="45"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="46"){$qisebo_hongbo=$qisebo_hongbo+1;}
        				if($value=="03"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="04"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="09"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="10"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="14"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="15"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="20"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="25"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="26"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="31"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="36"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="37"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="41"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="42"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="47"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="48"){$qisebo_lanbo=$qisebo_lanbo+1;}
        				if($value=="05"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="06"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="11"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="16"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="17"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="21"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="22"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="27"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="28"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="32"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="33"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="38"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="39"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="43"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="44"){$qisebo_lvbo=$qisebo_lvbo+1;}
        				if($value=="49"){$qisebo_lvbo=$qisebo_lvbo+1;}
        			}
        			$hezhju=0;
        			if($qisebo_lvbo==$qisebo_hongbo && $qisebo_lvbo>$qisebo_lanbo){$hezhju=1;}
        			if($qisebo_lvbo==$qisebo_lanbo && $qisebo_lvbo>$qisebo_hongbo){$hezhju=1;}
        			if($qisebo_hongbo==$qisebo_lanbo && $qisebo_hongbo>$qisebo_lvbo){$hezhju=1;}
        			if($hezhju==1){$zjzs=$zjzs+1;}
        		}
        		break;
        	case '254':
        		if($data['tzhm']=="0头"){
        			if($kjjg_7=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="09"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="1头"){
        			if($kjjg_7=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="19"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="2头"){
        			if($kjjg_7=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="29"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="3头"){
        			if($kjjg_7=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="39"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="4头"){
        			if($kjjg_7=="40"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="44"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="46"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="48"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="49"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="0尾"){
        			if($kjjg_7=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="40"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="1尾"){
        			if($kjjg_7=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="41"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="2尾"){
        			if($kjjg_7=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="42"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="3尾"){
        			if($kjjg_7=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="43"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="4尾"){
        			if($kjjg_7=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="44"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="5尾"){
        			if($kjjg_7=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="45"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="6尾"){
        			if($kjjg_7=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="7尾"){
        			if($kjjg_7=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="47"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="8尾"){
        			if($kjjg_7=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="9尾"){
        			if($kjjg_7=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="49"){$zjzs=$zjzs+1;}
        		}
        		break;
        	case '255':
				$tzhm = explode(' ',trim($data['tzhm']));
				if( 1==count($tzhm) ){
					if($data['tzhm']=="0尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==0 || substr($kjjg_2, strlen($kjjg_2)-1,1)==0 || substr($kjjg_3, strlen($kjjg_3)-1,1)==0 || substr($kjjg_4, strlen($kjjg_4)-1,1)==0 || substr($kjjg_5, strlen($kjjg_5)-1,1)==0 || substr($kjjg_6, strlen($kjjg_6)-1,1)==0){
							$zjzs = $zjzs+1;
						}
					}
					if($data['tzhm']=="1尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==1 || substr($kjjg_2, strlen($kjjg_2)-1,1)==1 || substr($kjjg_3, strlen($kjjg_3)-1,1)==1 || substr($kjjg_4, strlen($kjjg_4)-1,1)==1 || substr($kjjg_5, strlen($kjjg_5)-1,1)==1 || substr($kjjg_6, strlen($kjjg_6)-1,1)==1){
							$zjzs = $zjzs+1;
						}
					}
					if($data['tzhm']=="2尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==2 || substr($kjjg_2, strlen($kjjg_2)-1,1)==2 || substr($kjjg_3, strlen($kjjg_3)-1,1)==2 || substr($kjjg_4, strlen($kjjg_4)-1,1)==2 || substr($kjjg_5, strlen($kjjg_5)-1,1)==2 || substr($kjjg_6, strlen($kjjg_6)-1,1)==2){
							$zjzs = $zjzs+1;
						}
					}
					if($data['tzhm']=="3尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==3 || substr($kjjg_2, strlen($kjjg_2)-1,1)==3 || substr($kjjg_3, strlen($kjjg_3)-1,1)==3 || substr($kjjg_4, strlen($kjjg_4)-1,1)==3 || substr($kjjg_5, strlen($kjjg_5)-1,1)==3 || substr($kjjg_6, strlen($kjjg_6)-1,1)==3){
							$zjzs = $zjzs+1;
						}
					}
					if($data['tzhm']=="4尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==4 || substr($kjjg_2, strlen($kjjg_2)-1,1)==4 || substr($kjjg_3, strlen($kjjg_3)-1,1)==4 || substr($kjjg_4, strlen($kjjg_4)-1,1)==4 || substr($kjjg_5, strlen($kjjg_5)-1,1)==4 || substr($kjjg_6, strlen($kjjg_6)-1,1)==4){
							$zjzs = $zjzs+1;
						}
					}
					if($data['tzhm']=="5尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==5 || substr($kjjg_2, strlen($kjjg_2)-1,1)==5 || substr($kjjg_3, strlen($kjjg_3)-1,1)==5 || substr($kjjg_4, strlen($kjjg_4)-1,1)==5 || substr($kjjg_5, strlen($kjjg_5)-1,1)==5 || substr($kjjg_6, strlen($kjjg_6)-1,1)==5){
							$zjzs = $zjzs+1;
						}
					}
					if($data['tzhm']=="6尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==6 || substr($kjjg_2, strlen($kjjg_2)-1,1)==6 || substr($kjjg_3, strlen($kjjg_3)-1,1)==6 || substr($kjjg_4, strlen($kjjg_4)-1,1)==6 || substr($kjjg_5, strlen($kjjg_5)-1,1)==6 || substr($kjjg_6, strlen($kjjg_6)-1,1)==6){
							$zjzs = $zjzs+1;
						}
					}
					if($data['tzhm']=="7尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==7 || substr($kjjg_2, strlen($kjjg_2)-1,1)==7 || substr($kjjg_3, strlen($kjjg_3)-1,1)==7 || substr($kjjg_4, strlen($kjjg_4)-1,1)==7 || substr($kjjg_5, strlen($kjjg_5)-1,1)==7 || substr($kjjg_6, strlen($kjjg_6)-1,1)==7){
							$zjzs = $zjzs+1;
						}
					}
					if($data['tzhm']=="8尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==8 || substr($kjjg_2, strlen($kjjg_2)-1,1)==8 || substr($kjjg_3, strlen($kjjg_3)-1,1)==8 || substr($kjjg_4, strlen($kjjg_4)-1,1)==8 || substr($kjjg_5, strlen($kjjg_5)-1,1)==8 || substr($kjjg_6, strlen($kjjg_6)-1,1)==8){
							$zjzs = $zjzs+1;
						}
					}
					if($data['tzhm']=="9尾"){
						if(substr($kjjg_1, strlen($kjjg_1)-1,1)==9 || substr($kjjg_2, strlen($kjjg_2)-1,1)==9 || substr($kjjg_3, strlen($kjjg_3)-1,1)==9 || substr($kjjg_4, strlen($kjjg_4)-1,1)==9 || substr($kjjg_5, strlen($kjjg_5)-1,1)==9 || substr($kjjg_6, strlen($kjjg_6)-1,1)==9){
							$zjzs = $zjzs+1;
						}
					}
				}else{
					$is_new = 1;
					$pl_arr = explode( '|',trim($data['dqpl']) );
					$tail_attr = array_map(function($v){
						return substr($v, strlen($v)-1,1);
					},$kjjg_arr);
					foreach( $tzhm as $k=>$v ){
						$tail = substr( trim($v),0,1 );
						if( in_array($tail,$tail_attr) ){
							$zjzs += 1;
							$zjje += (floatval($data['dzje']) * floatval($pl_arr[$k]));
						}
					}
				}
        		break;
        	case '256':
        		if($data['tzhm'] == "单0.双7"){
        			if($kjjg_1%2==0 && $kjjg_2%2==0 && $kjjg_3%2==0 && $kjjg_4%2==0 && $kjjg_5%2==0 && $kjjg_6%2==0 && $kjjg_7%2==0){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "单1.双6"){
        			$cxcs = 0;
        			if($kjjg_1%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_2%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_3%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_4%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_5%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_6%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_7%2==1){$cxcs = $cxcs+1;}
        			if($cxcs==1){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "单2.双5"){
        			$cxcs = 0;
        			if($kjjg_1%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_2%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_3%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_4%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_5%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_6%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_7%2==1){$cxcs = $cxcs+1;}
        			if($cxcs==2){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "单3.双4"){
        			$cxcs = 0;
        			if($kjjg_1%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_2%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_3%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_4%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_5%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_6%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_7%2==1){$cxcs = $cxcs+1;}
        			if($cxcs==3){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "单4.双3"){
        			$cxcs = 0;
        			if($kjjg_1%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_2%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_3%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_4%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_5%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_6%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_7%2==1){$cxcs = $cxcs+1;}
        			if($cxcs==4){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "单5.双2"){
        			$cxcs = 0;
        			if($kjjg_1%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_2%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_3%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_4%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_5%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_6%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_7%2==1){$cxcs = $cxcs+1;}
        			if($cxcs==5){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "单6.双1"){
        			$cxcs = 0;
        			if($kjjg_1%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_2%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_3%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_4%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_5%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_6%2==1){$cxcs = $cxcs+1;}
        			if($kjjg_7%2==1){$cxcs = $cxcs+1;}
        			if($cxcs==6){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "单7.双0"){
        			if($kjjg_1%2==1 && $kjjg_2%2==1 && $kjjg_3%2==1 && $kjjg_4%2==1 && $kjjg_5%2==1 && $kjjg_6%2==1 && $kjjg_7%2==1){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if ($data['tzhm'] == "大0.小7") {
        			if($kjjg_1<25 && $kjjg_2<25 && $kjjg_3<25 && $kjjg_4<25 && $kjjg_5<25 && $kjjg_6<25 && $kjjg_7<25){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "大1.小6"){
        			$cxcs = 0;
        			if($kjjg_1>24){$cxcs = $cxcs+1;}
        			if($kjjg_2>24){$cxcs = $cxcs+1;}
        			if($kjjg_3>24){$cxcs = $cxcs+1;}
        			if($kjjg_4>24){$cxcs = $cxcs+1;}
        			if($kjjg_5>24){$cxcs = $cxcs+1;}
        			if($kjjg_6>24){$cxcs = $cxcs+1;}
        			if($kjjg_7>24){$cxcs = $cxcs+1;}
        			if($cxcs==1){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "大2.小5"){
        			$cxcs = 0;
        			if($kjjg_1>24){$cxcs = $cxcs+1;}
        			if($kjjg_2>24){$cxcs = $cxcs+1;}
        			if($kjjg_3>24){$cxcs = $cxcs+1;}
        			if($kjjg_4>24){$cxcs = $cxcs+1;}
        			if($kjjg_5>24){$cxcs = $cxcs+1;}
        			if($kjjg_6>24){$cxcs = $cxcs+1;}
        			if($kjjg_7>24){$cxcs = $cxcs+1;}
        			if($cxcs==2){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "大3.小4"){
        			$cxcs = 0;
        			if($kjjg_1>24){$cxcs = $cxcs+1;}
        			if($kjjg_2>24){$cxcs = $cxcs+1;}
        			if($kjjg_3>24){$cxcs = $cxcs+1;}
        			if($kjjg_4>24){$cxcs = $cxcs+1;}
        			if($kjjg_5>24){$cxcs = $cxcs+1;}
        			if($kjjg_6>24){$cxcs = $cxcs+1;}
        			if($kjjg_7>24){$cxcs = $cxcs+1;}
        			if($cxcs==3){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "大4.小3"){
        			$cxcs = 0;
        			if($kjjg_1>24){$cxcs = $cxcs+1;}
        			if($kjjg_2>24){$cxcs = $cxcs+1;}
        			if($kjjg_3>24){$cxcs = $cxcs+1;}
        			if($kjjg_4>24){$cxcs = $cxcs+1;}
        			if($kjjg_5>24){$cxcs = $cxcs+1;}
        			if($kjjg_6>24){$cxcs = $cxcs+1;}
        			if($kjjg_7>24){$cxcs = $cxcs+1;}
        			if($cxcs==4){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "大5.小2"){
        			$cxcs = 0;
        			if($kjjg_1>24){$cxcs = $cxcs+1;}
        			if($kjjg_2>24){$cxcs = $cxcs+1;}
        			if($kjjg_3>24){$cxcs = $cxcs+1;}
        			if($kjjg_4>24){$cxcs = $cxcs+1;}
        			if($kjjg_5>24){$cxcs = $cxcs+1;}
        			if($kjjg_6>24){$cxcs = $cxcs+1;}
        			if($kjjg_7>24){$cxcs = $cxcs+1;}
        			if($cxcs==5){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if($data['tzhm'] == "大6.小1"){
        			$cxcs = 0;
        			if($kjjg_1>24){$cxcs = $cxcs+1;}
        			if($kjjg_2>24){$cxcs = $cxcs+1;}
        			if($kjjg_3>24){$cxcs = $cxcs+1;}
        			if($kjjg_4>24){$cxcs = $cxcs+1;}
        			if($kjjg_5>24){$cxcs = $cxcs+1;}
        			if($kjjg_6>24){$cxcs = $cxcs+1;}
        			if($kjjg_7>24){$cxcs = $cxcs+1;}
        			if($cxcs==6){
        				$zjzs = $zjzs+1;
        			}
        		}
        		if ($data['tzhm'] == "大7.小0") {
        			if($kjjg_1>24 && $kjjg_2>24 && $kjjg_3>24 && $kjjg_4>24 && $kjjg_5>24 && $kjjg_6>24 && $kjjg_7>24){
        				$zjzs = $zjzs+1;
        			}
        			
        		}
        		break;
        	case '257':
        		if($data['tzhm']=="金"){
        			if($kjjg_7=="03"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="04"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="17"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="18"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="25"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="26"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="33"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="34"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="47"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="48"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="木"){
        			if($kjjg_7=="07"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="08"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="15"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="16"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="29"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="30"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="37"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="38"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="45"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="46"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="水"){
        			if($kjjg_7=="05"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="06"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="13"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="14"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="21"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="22"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="35"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="36"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="43"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="44"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="火"){
        			if($kjjg_7=="01"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="02"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="09"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="10"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="23"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="24"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="31"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="32"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="39"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="40"){$zjzs=$zjzs+1;}
        		}
        		if($data['tzhm']=="土"){
        			if($kjjg_7=="11"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="12"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="19"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="20"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="27"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="28"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="41"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="42"){$zjzs=$zjzs+1;}
        			if($kjjg_7=="49"){$zjzs=$zjzs+1;}
        		}
        		break;
        	case '258':
        		foreach ($kjjg_arr as $value){
        			if(strpos($data['tzhm'],$value) !== false) $zhongqiuhm += 1;
        		}
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '259':
        		if(strpos($data['tzhm'],$kjjg_1) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) !== false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '260':
        		if(strpos($data['tzhm'],$kjjg_1) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) !== false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '261':
        		if(strpos($data['tzhm'],$kjjg_1) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) !== false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '262':
        		if(strpos($data['tzhm'],$kjjg_1) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) !== false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;
        	case '263':
        		if(strpos($data['tzhm'],$kjjg_1) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_2) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_3) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_4) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_5) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_6) !== false) $zhongqiuhm += 1;
        		if(strpos($data['tzhm'],$kjjg_7) !== false) $zhongqiuhm += 1;
        		if($zhongqiuhm == 1) $zjzs = 1;
        		break;

        }
	}catch (Exception $e){
		echo $e->getMessage() ;
		return false;
	}
        //结算中奖并转移结算数据
        if($data['nb']==1 || $data['swzh']==1) {
            $table = 'touzhu_list_sw';
        } else {
            $table = 'touzhu_list_ok';
        }
        
        //选择投注模式
        if($data['nbzh'] == 1) $pieces = 1;
        if($data['nbzh'] == 2) $pieces = 10;
        if($data['nbzh'] == 3) $pieces = 100;
        
        //处理中奖金额（赔率*单注金额*中奖注数/投注模式），特殊玩法除外
		if( 1==$is_new ){
			$zjje = $zjje / $pieces;
		}else{
			$zjje = $data['dqpl'] * $data['dzje'] * $zjzs / $pieces;
		}
        
        //正肖结算特殊处理
        if($data['wfid'] == 238) {
            if($zjzs > 0) $zjje = (($data['dqpl']-1) * $zjzs * $data['dzje']+$data['dzje']) / $pieces;
        }
        //正码过关结算和值特殊处理
        if(($data['wfid'] == 173) && $spc_gg != 1) {
            $zjje = $zjje / $spc_gg;
        }
        $zjje = sprintf('%.2f',$zjje);
        $fd = Db::name('lhc_fd')->where('id',1)->find();
        $tmfdje = 0;
        $zmfdje = 0;
        if($data['wfid']==289){//289
        	$tmfdje = $data['dzje'] * $zjzs * $fd['fandian']/100;
        }
        if($data['wfid']==291){
        	$zmfdje = $data['dzje'] * $zjzs * $fd['zmfd']/100;
        }
        $fdzje = floatval($tmfdje) + floatval($zmfdje);
        //转移投注注单
        $insert_data = $data;
		$is_zh = $insert_data['from'];
        unset($insert_data['user_id'],$insert_data['swzh'],$insert_data['nb'],$insert_data['rktime'],$insert_data['cp_name_old'],$insert_data['cp_name_new'],$insert_data['from']);
        $insert_data['ifqs'] = '1';
        $insert_data['zjje'] = $zjje;
        $insert_data['fdje'] = $fdzje;
        $insert_data['zjzs'] = $zjzs;
        
        $insert_pc = $insert_data;
        unset($insert_pc['tzhje'],$insert_pc['tz_time']);
        $tzhje = Db::name('username')->where('id',$data['user_id'])->value('je');
        $insert_pc['tzhje'] = $tzhje;
        $insert_pc['tz_time'] = time();
        
        
        
        Db::startTrans();
        try {
        	if(!Db::name($table)->data($insert_data)->insert()){
        		throw new \Exception(false);
        	}
        	
        	if(!Db::name('touzhu_list_no')->where('id',$insert_data['id'])->delete()){
        		throw new \Exception(false);
        	}
        	if($fdzje>0){
	        	if(!Db::name('username')->where('id',$data['user_id'])->update(['je'=>['exp',"je+{$fdzje}"]])){
	        		throw new \Exception(false);
	        	}
        	}
        	
        	//中奖金额大于0.001则给用户增加金额
        	if($zjje > 0.001) {
        		if(!Db::name('touzhu_list_pc')->data($insert_pc)->insert()){
        			throw new \Exception(false);
        		}
        		//$prefix = config('database.prefix');
        		//Db::execute("UPDATE {$prefix}username SET  je=je+'{$zjje}',zjzje=zjzje+'{$zjje}' WHERE id={$data['user_id']}");
        		if(!Db::name('username')->where('id',$data['user_id'])->update(['je'=>['exp',"je+{$zjje}"],'zjzje' =>['exp',"zjzje+{$zjje}"]])){
        			throw new \Exception(false);
        		}
				//处理追号自动停止
				if( 1==intval($is_zh) ){
					$list_zh = Db::name('touzhu_list_zh')->field('*,1 as type')->where(['qihao'=>['>',$data['qihao']]])->where(['czid'=>$data['czid'],'wfid'=>$data['wfid'],'stop'=>1])->select();
					$list_no = Db::name('touzhu_list_no')->field('*,2 as type')->where(['qihao'=>['>',$data['qihao']]])->where(['czid'=>$data['czid'],'wfid'=>$data['wfid'],'from'=>1])->select();
					$list = array_merge($list_zh,$list_no);
					$tkqje = Db::name('username')->where('id',$data['user_id'])->value('je');
					//$tkqje = floatval($tzhje) + floatval($zjje);
					foreach($list as $v){
						$id = $v['id'];
						unset($v['id']);
						if( 1==$v['type'] ){
							unset($v['type']);
							unset($v['stop']);
							if( !Db::name('touzhu_list_zh')->delete($id) ){
								throw new \Exception(false);
							}
						}else{
							unset($v['rktime']);
							unset($v['type']);
							unset($v['from']);
							if( !Db::name('touzhu_list_no')->delete($id) ){
								throw new \Exception(false);
							}
						}
						$v['tktime'] = time();
						$v['tkqje'] = $tkqje;
						$tkqje += floatval($v['tzje']);

						if( !Db::name('touzhu_list_tk')->insert($v) ){
							throw new \Exception(false);
						}
						if( !Db::name('username')->where('id',$data['user_id'])->update(array('je'=>['exp',"je+'{$v['tzje']}'"],'tzzje'=>['exp',"tzzje-'{$v['tzje']}'"])) ){
							throw new \Exception(false);
						}
					}
				}
        	}
            /* Db::name($table)->data($insert_data)->insert();
            Db::name('touzhu_list_no')->where('id',$insert_data['id'])->delete();
            //中奖金额大于0.001则给用户增加金额
            if($zjje > 0.001) {
                //$prefix = config('database.prefix');
                //Db::execute("UPDATE {$prefix}username SET  je=je+'{$zjje}',zjzje=zjzje+'{$zjje}' WHERE id={$data['user_id']}");
                Db::name('username')->where('id',$data['user_id'])->update(['je'=>['exp',"je+{$zjje}"],'zjzje' =>['exp',"zjzje+{$zjje}"]]);
            } */
            Db::commit();
            return $zjje;
        } catch (\Exception $e) {
            Db::rollback();
            return false;
        }
    }
    
    //六合彩正码过关计算方法
	private static function zmgg_calculate($value) {
        if(!$value) return array();
        if($value == 49) {
            $res[] = '和';
        } else {
            if($value >= 25)  $res[] = '大';
            if($value <= 24)  $res[] = '小';
        }
        if(($value%2) != 0)  $res[] = '单';
        if(($value%2) == 0)  $res[] = '双';
        if((array_sum(str_split($value,1))) >= 7)  $res[] = '合大';
        if((array_sum(str_split($value,1))) <= 6)  $res[] = '合小';
        if((array_sum(str_split($value,1))%2) != 0)  $res[] = '合单';
        if((array_sum(str_split($value,1))%2) == 0)  $res[] = '合双';
        if(substr($value,-1) >= 5)  $res[] = '尾大';
        if(substr($value,-1) <= 4)  $res[] = '尾小';
        if( 0!=intval(substr($value,-1))%2 )  $res[] = '尾单';
        if( 0==intval(substr($value,-1))%2 )  $res[] = '尾双';
        if(in_array($value,array('01','02','07','08','12','13','18','19','23','24','29','30','34','35','40','45','46')))  $res[] = '红';
        if(in_array($value,array('05','06','11','16','17','21','22','27','28','32','33','38','39','43','44','49')))  $res[] = '绿';
        if(in_array($value,array('03','04','09','10','14','15','20','25','26','31','36','37','41','42','47','48')))  $res[] = '蓝';
        return $res;
    }
	private static function select_color($value){
		$res = [];
		if(in_array($value,array('01','02','07','08','12','13','18','19','23','24','29','30','34','35','40','45','46')))  $res[] = '红波';
		if(in_array($value,array('05','06','11','16','17','21','22','27','28','32','33','38','39','43','44','49')))  $res[] = '绿波';
		if(in_array($value,array('03','04','09','10','14','15','20','25','26','31','36','37','41','42','47','48')))  $res[] = '蓝波';
		return $res;
	}
	private static function select_animal($value){
		$res = [];
		if(in_array($value,array('11','23','35','47')))  $res[] = '鼠';
		if(in_array($value,array('10','22','34','46')))  $res[] = '牛';
		if(in_array($value,array('09','21','33','45')))  $res[] = '虎';
		if(in_array($value,array('08','20','32','44')))  $res[] = '兔';
		if(in_array($value,array('07','19','31','43')))  $res[] = '龙';
		if(in_array($value,array('06','18','30','42')))  $res[] = '蛇';
		if(in_array($value,array('05','17','29','41')))  $res[] = '马';
		if(in_array($value,array('04','16','28','40')))  $res[] = '羊';
		if(in_array($value,array('03','15','27','39')))  $res[] = '猴';
		if(in_array($value,array('02','14','26','38')))  $res[] = '鸡';
		if(in_array($value,array('01','13','25','37','49')))  $res[] = '狗';
		if(in_array($value,array('12','24','36','48')))  $res[] = '猪';
		return $res;
	}

}